package louie.wendy.redisrepository.service;

import louie.wendy.redisrepository.entity.User;

/**
 * @author louie
 */
public interface UserService {

    /**
     * save user
     * @param user user info
     * @return user
     */
    User save(User user);

    /**
     * find user by user's id
     * @param userId
     * @return
     */
    User findUser(String userId);

    /**
     * delete user by user's id
     * @param userId
     */
    void delete(String userId);

    /**
     * update user by user's id
     * @param user
     */
    void update(User user);
}
